/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import models.Users;
import services.interfaces.IRegService;

/**
 *
 * @author serga
 */
public class RegServiceImpl implements IRegService {
private List<Users> listUsers = new ArrayList<Users>();

    @Override
    public boolean checkUser (Users user) {
        int i;
        i = listUsers.indexOf(user);
        if (i==-1)
            return false;
        return true;
    }

    @Override
    public boolean regUser(Users users) {
         return  this.listUsers.add(users);
    }
    
}
